/**
 * v-label
 * @desc 点击元素外面才会触发的事件
 * @example
 * ```vue
 * <div v-label="handleClose">
 * ```
 */
export default {
  name:'zbLabel',
  bind(el, binding, vnode) {
    vnode.context.$on('changeData',(msg)=>{
      eval(`vnode.context.${binding.expression}=msg`)
    })
  },

  update(el, binding, vnode) {
    binding.value = binding.oldValue
  },

  inserted(el, binding, vnode) {
  },

  unbind(el) {

  }
};
